package com.bingxue.edu.management.education.model.req;

import com.bingxue.edu.common.enums.ChangeTypeEnum;
import com.bingxue.edu.common.enums.OperateSourceEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * 退班/退课前序
 *
 * @author zq
 * @since 2024/08/19 00:02
 */
@Data
@Schema(description = "退班/退课")
public class ClassCancelReq {

    @NotBlank(message = "订单id不能为空")
    @Schema(description = "订单id")
    private String orderItemId;

    @Schema(description = "班级id")
    @NotBlank(message = "班级id不能为空")
    private String classId;

    @Schema(description = "学生id")
    @NotBlank(message = "学生id不能为空")
    private String studentId;

    @Schema(description = "退课课次顺序列表")
    @NotEmpty(message = "退课课次不能为空")
    private List<Integer> cancelLessonIndexList;

    @Schema(description = "操作来源")
    private OperateSourceEnum operateSource;

    @Schema(description = "是否仅转所有剩余未上课次")
    @NotNull(message = "选择项不能为空")
    private boolean onlyRemainLesson;

    @Schema(description = "变更类型")
    @NotNull(message = "变更类型不能为空")
    private ChangeTypeEnum changeType;
}
